import pymysql

#连接数据库
db = pymysql.connect(
    host = '192.168.38.10',
    port = 3306,
    user = 'edptest',
    password =
    'edptest',
    charset = 'utf8',
    database = 'fd_students'
)
cur = db.cursor()
cur.execute(str("SELECT * FROM student WHERE id = '380424669821399040'"))
name= cur.fetchall()
print(name)